/* 附件显示区域样式 */

.attachments-container {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-top: 1px solid var(--vscode-panel-border, #2c2c2c);
    background-color: var(--vscode-editor-background, #1e1e1e);
}

.attachments-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: var(--vscode-descriptionForeground);
    margin-bottom: 6px;
}

.attachments-header .codicon {
    font-family: "codicon";
}

.attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background-color: var(--vscode-badge-background, #4d4d4d);
    color: var(--vscode-badge-foreground, #ffffff);
    border-radius: 4px;
    font-size: 0.85em;
    max-width: 200px;
}

.attachment-item .codicon {
    font-family: "codicon";
    font-size: 14px;
    flex-shrink: 0;
}

.attachment-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-remove {
    cursor: pointer;
    opacity: 0.7;
    padding: 0 2px;
    margin-left: 4px;
    flex-shrink: 0;
}

.attachment-remove:hover {
    opacity: 1;
    color: var(--vscode-errorForeground, #f48771);
}

.attachment-size {
    font-size: 0.75em;
    opacity: 0.7;
    margin-left: 4px;
}
